package cn.edu.xmu.wnw.dao;

import java.util.List;

import org.springframework.context.ApplicationContext;

import cn.edu.xmu.wnw.pojo.User;

public interface UserDAO {

	public void initDao();

	public void save(User transientInstance);

	public void delete(User persistentInstance);

	public User findById(java.lang.Integer id);

	public List findByExample(User instance);

	public List findByProperty(String propertyName, Object value);

	public List findByUsername(Object username);

	public List findByPassword(Object password);

	public List findByNickName(Object nickName);

	public List findByEmail(Object email);

	public List findByQq(Object qq);

	public List findByDescription(Object description);

	public List findByState(Object state);

	public List findByHit(Object hit);

	public List findAll();

	public User merge(User detachedInstance);

	public void attachDirty(User instance);

	public void attachClean(User instance);

	public UserDAO getFromApplicationContext(ApplicationContext ctx);
}